#include <stdio.h>
#define ADD(a,b,c,d,f) (a+b+c+d+f)
int main()
{
    float arr[5] = { 0 };
    float brr[5] = { 0 };
    float crr[5] = { 0 };
    float drr[5] = { 0 };
    float frr[5] = { 0 };
    float sum[5] = { 0 };
    int i = 0;
    int j = 0;
    for (i = 0; i < 5; i++)
    {
        scanf("%f%f%f%f%f", &arr[i], &brr[i], &crr[i], &drr[i], &frr[i]);
        sum[i] = ADD(arr[i], brr[i], crr[i], drr[i], frr[i]);
    }
    for (j = 0; j < 5; j++)
    {
        printf("%.1f %.1f %.1f %.1f %.1f %.1f", arr[j], brr[j], crr[j], drr[j], frr[j], sum[j]);
        printf("\n");
    }
    return 0;
}


#include<stdio.h>
int main()
{
    int a = 0;
    while (scanf("%d", &a) != EOF)
    {
        int i = 0;
        for (i = 0; i < a; i++)
        {
            printf("*");
        }
        printf("\n");

    }
    return 0;
}


#include <stdio.h>

int main()
{
    int a = 0;
    scanf("%d", &a);
    int h = a / 3600;
    printf("%d ", h);
    int min = (a % 3600) / 60;
    printf("%d ", min);
    int s = (a % 3600) % 60;
    printf("%d", s);


    return 0;
}


#include <stdio.h>

int main()
{
    int a = 0;
    while (scanf("%d", &a) != EOF)
    {
        if (a > 0)
        {
            printf("1\n");
        }
        else if (a < 0)
        {
            printf("0\n");
        }
        else
        {
            printf("0.5\n");
        }
    }
    return 0;
}